<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <?php include_http_metas() ?>
        <?php include_metas() ?>
        <?php include_title() ?>
        <link rel="shortcut icon" href="/cnrs.png" />
        <?php use_stylesheet("jquery-ui-1.8.19.custom.css") ?>
        <?php use_stylesheet("demo_page.css") ?>
        <?php use_stylesheet("demo_table.css") ?>
        <?php use_stylesheet("demo_table_jui.css") ?>
        <?php use_stylesheet("bootstrap.min.css") ?>
        <?php use_stylesheet("bootstrap-responsive.min.css") ?>
        <?php use_stylesheet("jquery.qtip.min.css") ?>
        
        <?php use_stylesheet("jquery.noty.css") ?>
        <?php use_stylesheet("noty_theme_default.css") ?>
        
        <?php use_stylesheet("jquery.jqplot.min.css") ?>
        
        
        
        <?php //use_stylesheet("jqueryFileTree.css") ?>
        
        
        <?php use_stylesheet("global.css") ?>
        <?php include_stylesheets() ?>
        <?php use_javascript("jquery-1.7.2.js") ?>
        <?php use_javascript("jquery-ui-1.8.19.custom.min.js") ?>
        <?php use_javascript("jquery.cookies.js") ?>
        <?php use_javascript("jquery.cookie.js") ?>
        <?php use_javascript("jquery.ui.datepicker-fr.js") ?>
        <?php use_javascript("jquery.dataTables.min.js") ?>
        <?php use_javascript("bootstrap.min.js") ?>
        <?php use_javascript("jquery.qtip.min.js") ?>
        <?php use_javascript("tiny_mce/tiny_mce.js") ?>
        <?php use_javascript("global.js") ?>
        
        <?php use_javascript("jquery.noty.js") ?>
        
        <!--[if lt IE 9]><?php use_javascript("excanvas.min.js") ?><![endif]-->
        <?php use_javascript("jquery.jqplot.min.js") ?>
        <?php use_javascript("jquery.jqplot.pieRenderer.min.js") ?>
        
        <?php //use_javascript("jquery.jstree.js") ?>
        <?php //use_javascript("jqueryFileTree.js") ?>
        
        
        
        <?php include_javascripts() ?>
        </head>
    <body>
        <div id="header">
            <div class="navbar">
                <div class="container">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </a>
                    <a class="brand" href="<?php echo url_for('@homepage') ?>"><img width="64px" src="/images/cnrs.png"></img></a>
                    <a class="brand" href="<?php echo url_for('@homepage') ?>">CEMHTI - Gestion des échantillons</a>
                    <div class="nav-collapse">
                        <?php if($sf_user->isAuthenticated()) : ?>
                        <ul class="nav">
                            <li class="divider-vertical"></li>
                            <li><a href="<?php echo url_for('@logout') ?>" id="deco"  class="deco">Déconnexion</a></li>
                            <li class="divider-vertical"></li>
                            <li><a href="<?php echo url_for('@homepage') ?>" id="accueil" >Accueil</a></li>
                            <li><a href="<?php echo url_for('infosUser/index') ?>" id="moncompte">Mon compte (<?php echo $sf_user->getGuardUser()->getFirstName() . " " . $sf_user->getGuardUser()->getLastName()?>)</a></li>
                            <li><a href="<?php echo url_for('statistiques/index') ?>">Statistiques</a></li>
                            <li><a href="<?php echo url_for('aide/index') ?>">Aide</a></li>
                            <?php if($sf_user->getGuardUser()->isAdmin()) : ?>
                            <li class="divider-vertical"></li>
                            <li><a href="<?php echo url_for('administration/index') ?>" id="administration">Administration</a></li>
                            <?php endif; ?>
                            <li class="divider-vertical"></li>
                            <li>
                                <a>Info-bulles
                                    <div class="cb-switch">
                                        <label id="help_cb-enable" class="cb-enable <?php if($sf_user->getAttribute("help", "off") == "on") echo "selected" ?>"><span>Oui</span></label>
                                        <label id="help_cb-disable" class="cb-disable <?php if($sf_user->getAttribute("help", "off") == "off") echo "selected" ?>"><span>Non</span></label>
                                    </div>
                                </a>
                            </li>
                        </ul>
                        <?php endif; ?>
                        
                    </div>
                    
                </div>
                
            </div>
            
        </div>
        

        <div id="content">
            
            <?php echo $sf_content ?>
        </div>

    </body>
</html>
